package com.itany.cms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.itany.cms.entity.User;
import com.itany.cms.entity.UserParam;
import com.itany.cms.exception.CodeErrorException;
import com.itany.cms.exception.RequestParameterErrorException;
import com.itany.cms.exception.UserExistException;
import com.itany.cms.exception.UserNotExistException;

import java.util.List;

public interface UserService {
    User login(String loginName, String password,String code, String image) throws RequestParameterErrorException, CodeErrorException, UserNotExistException;
    PageInfo<User> findByParams(User userParam, String pageNo, String pageSize);
    void modifyStatus(String id, String status) throws RequestParameterErrorException;
    void modifyName( String id,String nickname,String password, String role, String email) throws UserExistException, RequestParameterErrorException;
    List<User> findAll();
}
